﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ProductsCategory.ascx.cs" Inherits="Controls_Products" %>
<div class="grid_14">
    <asp:Repeater ID="rptProductContent" runat="server">
        <ItemTemplate>
            <div class="content">
                <div class="products">
                    <div class="title">
                        <h2>
                            <%#Eval("FULL_CATEGORY_NAME") %></h2>
                        <h6>
                            <a href='Index.aspx?category_id=<%#Eval("CATEGORY_ID")%>'>Xem toàn bộ sản phẩm >> </a>
                        </h6>
                    </div>
                    <ul>
                        <asp:Repeater ID="rptProduct" runat="server" DataSource='<%#ShowProducts(Convert.ToInt32(Eval("CATEGORY_ID")))%>'>
                            <ItemTemplate>
                                <li><a href="#">
                                    <img alt="<%#Eval("THUMB_IMG") %>" src='/<%# Setting.Path + Eval("THUMB_IMG").ToString()%>'
                                        height="50" /></a>
                                    <h3>
                                        <a href="#">
                                            <%#Eval("FULL_ARTICLE_TITLE") %></a></h3>
                                </li>
                            </ItemTemplate>
                        </asp:Repeater>
                    </ul>
                </div>
                <!--End .products-->
                <div class="top">
                </div>
                <div class="bottom">
                </div>
            </div>
            <!--End .content-->
            <!--End .content-->
        </ItemTemplate>
    </asp:Repeater>
    <div class="pagerContainer" id="pagerContainer" runat="server">
    </div>
</div>
